﻿using System;
using System.Collections.Generic;
using RoketSolutions.SP2010.Infrostructure.UI.Ajax.ModelBinders.Interfaces;

namespace RoketSolutions.SP2010.Infrostructure.UI.Ajax.ModelBinders
{
    public class ModelBinderDictionary : Dictionary<Type, IModelBinder>
    {
        IModelBinder _defaultBinder;
        public IModelBinder DefaultBinder
        {
            get
            {
                return _defaultBinder ?? (_defaultBinder = new DefaultModelBinder());
            }
            set
            {
                _defaultBinder = value;
            }
        }
    }
}